package com.woniuxy.main.service;

import java.util.List;
import java.util.Map;

import com.woniuxy.main.pojo.Follow;
import com.woniuxy.main.pojo.User;

public interface UserService {

	public int addUserByMail(User user);
	public int addUserByPhone(User user);
	public int addUserByAccount(User user);
	public User selectByAccount(String account);
	public User selectByMail(String umail);
	public User selectByPhone(String uphone);
	public User selectByUid(int uid);
	public double balanceCheck(int uid);
	public void addUserHeadImage(User user);
	public int updateUser(User user);
	
	public List<User> findFollowed(int uid);
	public List<User> findFans(int uid);
	public List<User> findFriend(int uid);
	public int cancleFollow(Follow follow);
	public int addFollow(Follow follow);
	public Follow checkFollow(Follow follow);
	public int lockAccount(Map<String,Object> request);
	public int unLockAccount(int uid);
	public String isPhoneExist(String uphone);
	public String isMailExist(String umail);
	public int adminAddCoach(User user);
	public User findUserByUid(User user);
	public int refuseComplain(int cpid);
	public int aceptComplain(int cpid);
	public String isAccountExist(String account);

	public int changePwd(String pwd,int uid);

	public int setPwd(User user);

}
